<?php

namespace App\Providers;

use App\Service\Sms\KmiCloudSmsService;
use Illuminate\Support\ServiceProvider;

class KmiCloudServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        $this->app->singleton(KmiCloudSmsService::class, function ($app) {
            return new KmiCloudSmsService(config('sms.kmi_cloud'));
        });

        $this->app->alias(KmiCloudSmsService::class, 'kmiCloud');
    }
}
